package com.ybf.api.mapper.provider;

import com.ybf.api.entity.UserRoles;
import org.apache.ibatis.annotations.Param;

public class UserRolesProvider {
    public StringBuilder findAll(@Param("userroles") UserRoles userroles) {
        StringBuilder sql = new StringBuilder("select  from user_roles where 1 = 1");
        if(userroles.getStatus() != null) {
            sql.append(" and status = #{userroles.status}");
        }
        return sql;
    }
}
